package collectionTest;

/**
 * @author shentianyu
 * @date 2021-06-08 23:59
 */
public class GenericDemo {
    public static void main(String[] args) {
        GenericTest<Student> genericTest = new GenericTest();
        Student student = new Student("张三",20);
        genericTest.t = student;
        genericTest.show();
        Student t = genericTest.getT();
        System.out.println(t);

        MyInterface myInterface = new MyInterfaceImpl();
        myInterface.server();

        MyInterfaceImpl2<Student> myInterface1 = new MyInterfaceImpl2<Student>();
        myInterface1.t = new Student("张三",20);
        System.out.println(myInterface1.server());
    }


}
